.layout {
  width: 100%;
  height: 375px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  background: $color-white;
}

.list {
  margin: 13px 10px 0 10px;
  width: 298px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 4px;
  gap: 8px;
  // padding: 10px;
  overflow: auto;
}

.item {
  &-layout {
    width: 294px;
    // height: 120px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-radius: 6px;
    background: $color-white;
    border: 1px solid $color-border;
    gap: 6px;
    padding: 0 12px;
    padding-top: 10px;
    overflow: hidden;
  }
  &-library {
    width: 271px;
    height: 60px;
    display: flex;
    flex-direction: row;
    &-middle {
      width: 151px;
      height: 100%;
      display: flex;
      flex-direction: column;
      &-up {
        width: 100%;
        height: 26px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
      }
      &-down {
        width: 148px;
        margin-left: 1.5px;
        height: 34px;
        display: flex;
        flex-direction: row;
        background: rgba(0,0,0,0.05);
        &-item {
          display: flex;
          flex: 1;
          flex-direction: row;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }

  &-tools {
    width: 100%;
    height: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;justify-content: space-between;
    &-left {
      height: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 2px;
      cursor: pointer;
      &-icon {
        width: 16px;
        height: 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
      }
      &-text {
        @include text-caption;
        color: $color-text-gray;
      }
    }
    &-right {
      height: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      &-button {
        height: 24px;
        padding-top: 0;
        padding-bottom: 0;
      }
    }
  }

  &-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    &-desc {
      width: 100%;
      display: flex;
      flex-direction: column;
      &-title {
        @include text-caption;
        font-size: 12px;
        line-height: 18px;
        color: $color-text-black;
      }
      &-text {
        @include text-caption;
        @include ellipsis(1);
        font-size: 10px;
        line-height: 14px;
        color: rgba(0,0,0,0.35);
      }
    }
    &-ref {
      width: 100%;
      display: flex;
      flex-direction: column;
      &-title {
        @include text-caption;
        font-size: 12px;
        line-height: 18px;
        color: $color-text-black;
      }
      &-images {
        width: 100%;
        height: 32px;
        display: flex;
        flex-direction: row;
        gap: 3px;
      }
    }
  }
}